<template>
   <div class="product-item-container">
      <div class="product-item-img-box">
         <img :src="imgpath" alt="">
      </div>
      <div class="product-item-content-box">
        <div class="desc-1">{{title}}</div>
        <div class="desc-2">
            <div>{{type}}</div>
            <div>{{posttime}}</div>
        </div>
      </div>
   </div>
</template>

<script>
export default {
    props:['imgpath','title','type','posttime']
}
</script>

<style lang="scss">
    .product-item-container{
        margin: 10px;
        width: 260px;
        height: 250px;
        border-radius: 15px;
        display: flex;
        flex-direction: column;
        .product-item-img-box{
            height: 145px;
        }
        .product-item-content-box{
            flex-grow: 1;
            background-color: #f5f5f5;
            .desc-1{
                padding: 10px;
            }
            .desc-2{
                display: flex;
                justify-content: space-between;
                padding: 10px;
            }
        }
    }
</style>